From 38fbe68e83133fbbe4487fc9e8f77dfee5bbba00 Mon Sep 17 00:00:00 2001 From: Ignacio Casal Quinteiro Date: Wed, 29 Jun 2016 15:05:08 +0200 Subject: [PATCH] gdk: do not provide display command line argument on windows There is no need to specify a display on windows. --- gdk/gdk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/gdk.c b/gdk/gdk.c index 97ea21333b..f2113e10a8 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -233,9 +233,11 @@ static const GOptionEntry gdk_args[] = { { "name", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_name_cb, /* Description of --name=NAME in --help output */ N_("Program name as used by the window manager"), /* Placeholder in --name=NAME in --help output */ N_("NAME") }, +#ifdef G_OS_WIN32 { "display", 0, G_OPTION_FLAG_IN_MAIN, G_OPTION_ARG_STRING, &_gdk_display_name, /* Description of --display=DISPLAY in --help output */ N_("X display to use"), /* Placeholder in --display=DISPLAY in --help output */ N_("DISPLAY") }, +#endif #ifdef G_ENABLE_DEBUG { "gdk-debug", 0, 0, G_OPTION_ARG_CALLBACK, gdk_arg_debug_cb, /* Description of --gdk-debug=FLAGS in --help output */ N_("GDK debugging flags to set"), -- 2.30.2